home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / RTGMaster / demos / moon / WORLD.H < prev   
Encoding:
C/C++ Source or Header  |  1998-06-24  |  597 b   |  22 lines

  1. // Note: The map_size variables MUST be powers of 2!
  2. // This is because I'm using AND instead of MOD to clip coordinates.
  3.  
  4. //const  map_size_x   = 128;//512;
  5. //const  map_size_y   = 128;//512;
  6. #define   map_size_x  128 //512
  7. #define   map_size_y  128 //512
  8. #define  scale_area    2048
  9. extern long  clip_mask_x, clip_mask_y;
  10.  
  11. #define  scale_area    2048
  12. extern long scale_height;
  13. extern long world_size_x,world_size_y;
  14. extern long max_alt,min_alt;
  15.  
  16. typedef unsigned char map_t [ map_size_x ][ map_size_y ];
  17.  
  18. extern map_t far   alt_map;
  19. extern map_t far   color_map;
  20.  
  21. void  WORLD_generate ( void );
  22.